﻿using System;

namespace KKCai.HNKL.Model
{
    public class HNKLInfo
    {
        public HNKLInfo() { }

        public HNKLInfo(string phase, string result)
        {
            Phase = phase;
            Result = result;
            ASC_Result = Utility.Utils.Sort(Result);
            A1 = Result.Substring(0, 2);
            A3 = Result.Substring(0, 8);
            P3 = Utility.Utils.Sort(A3);
        }

        public virtual int ID { get; private set; }

        public virtual string Phase { get; set; }

        public virtual string Result { get; set; }

        public virtual string ASC_Result { get; set; }

        public virtual string A1 { get; set; }

        public virtual string A3 { get; set; }

        public virtual string P3 { get; set; }

        public virtual int Num
        {
            get
            {
                return Convert.ToInt32(Phase.Substring(8));
            }
        }

    }
}
